package com.softstao.guoyu.model.me;


public class User {

    public enum Type{
        ANGEL(1),
        CROWN(2),
        ONE_LEVEL(3),
        CITY_LEVEL(4),
        PROVINCE(5),
        HEADQUARTER(6),
        UNAGENT(7);

        public final int value;
        Type(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }

        public static Type fromInteger(int x) {
            switch (x) {
                case 1:
                    return ANGEL;
                case 2:
                    return CROWN;
                case 3:
                    return ONE_LEVEL;
                case 4:
                    return CITY_LEVEL;
                case 5:
                    return PROVINCE;
                case 6:
                    return HEADQUARTER;
                case 7:
                    return UNAGENT;
                default:
                    return UNAGENT;
            }
        }

        public static int toInteger(Type type) {
            switch (type) {
                case ANGEL:
                    return 1;
                case CROWN:
                    return 2;
                case ONE_LEVEL:
                    return 3;
                case CITY_LEVEL:
                    return 4;
                case PROVINCE:
                    return 5;
                case HEADQUARTER:
                    return 6;
                case UNAGENT:
                    return 7;
            }
            return 7;
        }
    }

    /**
     * avatar : www.baidu.com
     * name : 张三
     * parentId : 3
     * parentName : 李四
     * parentMobile : 1370000002
     * mobile : 13700000001
     * idCardNo : 2010xxxxxxxxxxx1
     * sex : 男
     * wechat : 1111
     * qq : 19283981
     * level : 省级
     * referee : 李四
     * auditDate :
     * levelAuditDate :
     * payee : 张三
     * accountPayee : 1238190283981902389182
     * openingBank : 建设银行南城支行
     * bond : 1000
     */

    private String avatar;
    private String name;
    private int parentId;
    private String parentName;
    private String parentMobile;
    private String mobile;
    private String idCardNo;
    private int sex;
    private String wechat;
    private String qq;
    private int level;
    private String referee;
    private long auditDate;
    private long levelDate;
    private String payee;
    private String accountPayee;
    private String openingBank;
    private float bond;
    private float balance;
    private int isAlreadyUpinfo;
    private int state;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getParentMobile() {
        return parentMobile;
    }

    public void setParentMobile(String parentMobile) {
        this.parentMobile = parentMobile;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getReferee() {
        return referee;
    }

    public void setReferee(String referee) {
        this.referee = referee;
    }

    public long getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(long auditDate) {
        this.auditDate = auditDate;
    }

    public long getLevelDate() {
        return levelDate;
    }

    public void setLevelDate(long levelDate) {
        this.levelDate = levelDate;
    }

    public String getPayee() {
        return payee;
    }

    public void setPayee(String payee) {
        this.payee = payee;
    }

    public String getAccountPayee() {
        return accountPayee;
    }

    public void setAccountPayee(String accountPayee) {
        this.accountPayee = accountPayee;
    }

    public String getOpeningBank() {
        return openingBank;
    }

    public void setOpeningBank(String openingBank) {
        this.openingBank = openingBank;
    }

    public float getBond() {
        return bond;
    }

    public void setBond(float bond) {
        this.bond = bond;
    }

    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
    }

    public int getIsAlreadyUpinfo() {
        return isAlreadyUpinfo;
    }

    public void setIsAlreadyUpinfo(int isAlreadyUpinfo) {
        this.isAlreadyUpinfo = isAlreadyUpinfo;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
